<script type="text/javascript">
            window.onload = function(){    
                if(top.finishUpload)
                    top.finishUpload(); //You can add arguments here based on the PHP results to send back to the parent JavaScript function
                // alert(top.finishUpload);
            };
</script>

<%= render "small_gallery_items" %>
